import base64

# from aip import AipFace
#
#
# APP_ID = '25579205'
# API_KEY = '6G8O7QGrGMPcKCXfZpbvUmqQ'
# SECRET_KEY = '5p8xpunmMa8ysenOhlcHVttGTGbYObnf'
#
# client = AipFace(APP_ID, API_KEY, SECRET_KEY)

# result = client.match([
#     {
#         'image': 'http://r6xb04drr.hb-bkt.clouddn.com/2.jpg',
#         'image_type': 'URL',
#     },
#     {
#         'image': 'http://r6xb04drr.hb-bkt.clouddn.com/2.jpg',
#         'image_type': 'URL',
#     }
# ])



# result = client.match([
#     {
#         'image': base64.b64encode(open('t017d26367d2f1fa3f7.webp.jpg', 'rb').read()),
#         'image_type': 'BASE64',
#     },
#     {
#         'image': base64.b64encode(open('t01a35121a22ded7478.webp.jpg', 'rb').read()),
#         'image_type': 'BASE64',
#     }
# ])
# print(result)
# import datetime
# import time
#
# time1 = datetime.datetime.strftime(datetime.datetime.now(),'%Y-%m-%d')
# print(int(time1.split('-')[1])+12)
# print(time.localtime())

# lis = ['2022', 8, '11']
from datetime import datetime,timedelta
# dt6 = datetime.now() + timedelta(months=1) # 1周后的时间
# print(datetime.strftime(dt6,'%Y-%m-%d'))

print(datetime.strftime(datetime.now() - timedelta(days=1),'%Y-%m-%d'))
